/**
 * File: ArcMultiplicityMaximimCutoff.java
 * Created by: mhaimel
 * Created on: Mar 24, 2010
 * CVS:  $Id: ArcMultiplicityMaximimCutoff.java 1.0 Mar 24, 2010 11:57:35 AM mhaimel Exp $
 */
package uk.ac.ebi.curtain.model.graph.curtain.filter;

import uk.ac.ebi.curtain.model.graph.curtain.CategoryReadInfo;


/**
 * Cut arcs, where the multiplicity of the category is > cutoff value provided
 * 
 * @author mhaimel
 *
 */
public class ArcMultiplicityMaximimCutoff extends ArcMultiplicityCutoff {

	public ArcMultiplicityMaximimCutoff(int[] cutoffCategory) {
		super(cutoffCategory);
	}

	@Override
	protected boolean doCutoff(int category, CategoryReadInfo info, int cut) {
		if(cut < 0){
			return false;
		}
		return info.getMultiplicity() > cut;
	}
}
